package com.shisfish.english.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shisfish.english.model.SingleWord;

public interface ISingleWordDao {

	int insertObj(SingleWord singleWord);

	List<SingleWord> selectByNameL(String name);
	
	int changeMeaning(@Param("id") long id, @Param("meaning") String meaning);

	int deleteById(long id);

	SingleWord selectByName(String name);

	List<SingleWord> selectByParams(String name);

	List<SingleWord> pageByParams(@Param("pageBeginIndex") int pageBeginIndex, @Param("pageSize") int pageSize, @Param("name") String name);

	int countByParams(@Param("name") String name);

}
